
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" href="../../css/aui.css">
    <link rel="stylesheet" href="../../css/normalUser.css">
    <link rel="stylesheet" href="../../css/pulice.css">
    <script src="../../js/api.js"></script>
    <script src="../../js/libs/zepto.min.js"></script>
    <script src="../../js/vue.min.js"></script>
    <script src="../../js/vconsole.min.js"></script>
    <script src="../../js/vue-resource.min.js"></script>
    <script src="../../js/aui-toast.js"></script>
    <script src="../../js/common.js" type="text/javascript" charset="utf-8"></script>
    <script>
    	setToken();
        $(function () {
            $('.hm-bar').load('../../data/headerOther.html',function () {
                $(this).find('.head-main').text('充值');
                $(this).find('.hm-bar-box').css('position','static');
                $(this).find('.head-left').on('tap',function () {
                    window.history.back();
                });
            });
            
            var app = new Vue({
                el:'#app',
                data: {
                    account: {},//充值金额
                    cash: '',
                    pageIndex : 1,
                },
                mounted:function () {
                },
                methods: {
                    recharge:function () {
                        this.$http.post(SURL+"app/Account/RechargeOrder",{cash: this.cash},{emulateJSON : true}).then(function(res){
                            console.log(res);
                            if(res.body.status == 1){
                                this.account = res.body.data;
                                location.href = "../orderAndPay/hm-cashier2.html?list="+this.account.orderNO+"&totalMoney="+this.account.cash
                            }else {

                            }
                        }).catch(function(req){

                        });
                    },

                }
            })
        })
    </script>
    <title>充值</title>
</head>
<body>
    <div class="hm-bar"></div>
    <div id="app">
    	<ul class="center-rePas mt149">
	        <li style="color:#03a9f4;">充值</li>
	        <li><input type="text" placeholder="请输入充值金额" v-model="cash"></li>
	    </ul>
	    <a class="btn btn-orange btn-mt2" href="#" style="background:#03a9f4;" @click.prevent="recharge">下一步</a>
    </div>
    
</body>
</html>